﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ParasInject
{
    static class Con2
    {
        public static void showLine (string s, ConsoleColor cc )
        {
            ConsoleColor ccold = Console.ForegroundColor;
            Console.ForegroundColor = cc;
            Console.WriteLine(s);
            Console.ForegroundColor = ccold;
        }

        public static void show (string s, ConsoleColor cc)
        {
            ConsoleColor ccold = Console.ForegroundColor;
            Console.ForegroundColor = cc;
            Console.Write(s);
            Console.ForegroundColor = ccold;
        }

        public static void showErrLine(string s, ConsoleColor cc)
        {
            ConsoleColor ccold = Console.ForegroundColor;
            Console.ForegroundColor = cc;
            Console.Error.WriteLine(s);
            Console.ForegroundColor = ccold;
        }

        public static void showErr(string s, ConsoleColor cc)
        {
            ConsoleColor ccold = Console.ForegroundColor;
            Console.ForegroundColor = cc;
            Console.Error.Write(s);
            Console.ForegroundColor = ccold;
        }
    }
}
